package com.pay.config.wxpay;

import java.io.InputStream;


/**
 * ${DESCRIPTION}
 *
 * @author MENG
 * @version 2018/7/11
 * @see
 */
public class MyConfig extends WXPayConfig
{
    //缓存微信支付接口的信息
    public static String appIdCache = "";

    public static String mchIdCache = "";

    public static String apiKeyCache = "";



    private String appId;//wxb6bb03ee4f67114d

    private String mchId;//1367305402

    private String apiKey;//8098873c18ba47918114fbab12131517

    private String notifyUrl = "thirdpay/wxpayNotify";

    public String getNotifyUrl()
    {
        return notifyUrl;
    }

    public void setAppId(String appId)
    {
        this.appId = appId;
    }

    public void setMchId(String mchId)
    {
        this.mchId = mchId;
    }

    public void setApiKey(String apiKey)
    {
        this.apiKey = apiKey;
    }

    public void setNotifyUrl(String notifyUrl)
    {
        this.notifyUrl = notifyUrl;
    }

    @Override
    String getAppID()
    {
        return this.appId;
    }

    @Override
    String getMchID()
    {
        return this.mchId;
    }

    @Override
    String getKey()
    {
        return this.apiKey;
    }

    @Override
    InputStream getCertStream()
    {
        return null;
    }

    @Override
    IWXPayDomain getWXPayDomain()
    {
        return WXPayDomainSimpleImpl.instance();
    }
}
